package com.heima.model.behavior.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

//app点赞行为表
@Data
@TableName("ap_likes_behavior")
public class ApLikesBehavior implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    //实体id
    @TableField("entry_id")
    private Integer entryId;

    //文章id
    @TableField("article_id")
    private Long articleId;

    //点赞内容  0 文章 1 动态
    @TableField("type")
    private Integer type;

    //0 点赞 1 取消点赞
    @TableField("operation")
    private Integer operation;

    //登录时间
    @TableField("create_time")
    private Date createTime;
}
